Skip to content

Copy only YAML files when syncing CRDs - #5307

Merged
caseydavenport merged 1 commit into
tigera:release-v1.44from
caseydavenport:casey-crd-sync-yaml-144
Sep 10, 2026
Merged

Copy only YAML files when syncing CRDs#5307
caseydavenport merged 1 commit into
tigera:release-v1.44from
caseydavenport:casey-crd-sync-yaml-144

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

Description

Bug fix. The CRD sync copies every file out of the upstream CRD directories, so it picked up the Go files that sit alongside the generated YAML. The operator parses everything in those directories as CRDs, which made it panic at startup and fail make test-crds, the unit tests, and the FVs. This restricts the copy to YAML files.

Verified locally: make gen-versions leaves a clean tree, and both --print-enterprise-crds all and --print-calico-crds all exit 0. Reproduced the panic first on the head of #5298.

Affects the version sync only, not the shipped operator.

Release Note

NONE

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

The upstream CRD directories also hold Go source, which is not CRD content.
Copilot AI lite review requested due to automatic review settings September 10, 2026 16:59
@caseydavenport
caseydavenport requested a review from a team as a code owner September 10, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@marvin-tigera marvin-tigera added this to the v1.44.0 milestone Sep 10, 2026
@caseydavenport
caseydavenport merged commit 20d105b into tigera:release-v1.44 Sep 10, 2026
8 checks passed
@caseydavenport
caseydavenport deleted the casey-crd-sync-yaml-144 branch September 10, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants